package cn.cloud9.chinese.mainland;

import cn.cloud9.chinese.mainland.constant.Constant;
import cn.cloud9.chinese.mainland.util.MyUtil;

/**
 * @author OnCloud9
 * @description
 * @project RegionReptile-Remaster
 * @date 2022年07月07日 下午 09:35
 */
public class MainApplication {

    public static void main(String[] args) {
        final String year = 0 == args.length ? "2009" : args[0];
        String tableName = "region" + year;
        String BASE_URL = Constant.ROOT_PATH.replace("${YEAR}", year);
        MyUtil.initialTableSpace(tableName);
        MyUtil.readProvinceData(BASE_URL, tableName);
    }
}
